package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 新闻发布管理对象 mg_news
 *
 * @author zhangjinlei
 * @date 2022-05-07
 */
public class MgNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻ID */
    private Integer newId;

    /**
     * 标识
     */
    private Integer tag;
    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String newTitle;

    /** 新闻类型（1通知 2公告） */
    @Excel(name = "新闻类型", readConverterExp = "1=通知,2=公告")
    private String newType;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String newContent;
    /**
     * 新闻封面
     */
    private String newsImage;

    /**
     * 审核状态
     */
    private Integer auditStatus;

    /**
     * 拒绝理由
     */
    private String refuseReason;
    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 新闻状态（0正常 1关闭） */
    @Excel(name = "新闻状态", readConverterExp = "0=正常,1=关闭")
    private String status;


    public Integer getTag() {
        return tag;
    }

    public void setTag(Integer tag) {
        this.tag = tag;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getNewsImage() {
        return newsImage;
    }

    public void setNewsImage(String newsImage) {
        this.newsImage = newsImage;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getRefuseReason() {
        return refuseReason;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
    }

    public void setNewId(Integer newId)
    {
        this.newId = newId;
    }

    public Integer getNewId()
    {
        return newId;
    }
    public void setNewTitle(String newTitle)
    {
        this.newTitle = newTitle;
    }

    public String getNewTitle()
    {
        return newTitle;
    }
    public void setNewType(String newType)
    {
        this.newType = newType;
    }

    public String getNewType()
    {
        return newType;
    }
    public void setNewContent(String newContent)
    {
        this.newContent = newContent;
    }

    public String getNewContent()
    {
        return newContent;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newId", getNewId())
            .append("newTitle", getNewTitle())
            .append("newType", getNewType())
            .append("newContent", getNewContent())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
